<template>
    <div class="el-header-top">
        <div class="el-header-top-logo">
            <el-space alignment="start" :size="10">
                <el-icon :size="24" color="#FFF">
                    <MapLocation />
                </el-icon>全域视频监控GIS服务平台
            </el-space>
        </div>
        <div class="el-header-top-acount">
            用户A | 网格管理员
            <el-icon>
                <SwitchButton />
            </el-icon>退出
        </div>
    </div>
    <div class="el-header-bottom">
        <el-space alignment="start" :size="15">
            <el-button :icon="Grid" class="el-header-bottom-button" @click="mapStore.leftMenu.visible = true" />
            <el-button :icon="HomeFilled" class="el-header-bottom-button" />
        </el-space>
        <div class="el-header-bottom-tags">
            <el-tag type="info" closable class="el-header-bottom-tag-info">点位管理</el-tag>
            <el-tag type="info" closable class="el-header-bottom-tag-info">摄像头管理</el-tag>
            <el-tag type="primary" closable class="el-header-bottom-tag-primary">电子地图</el-tag>
        </div>
    </div>
</template>

<script setup>
import { ref, reactive } from 'vue'
import { Grid, HomeFilled } from "@element-plus/icons-vue";
import pinia from "@/store/pinia.js";
import { useStore } from "@/store/index.js";
const mapStore = useStore(pinia);
</script>

<style lang='less' scoped>
.el-header-top {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.el-header-top-logo {
    font-size: 24px;
    font-weight: bold;
}

.el-header-top-logo .el-space {
    display: flex !important;
    align-items: center !important;
}

.el-header-top-acount {
    font-size: 13px;
    text-align: right;
}

.el-header-bottom {
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.el-header-bottom .el-button {
    background: none;
    border: 0;
    padding: 0 !important;
}

.el-header-bottom-button /deep/ .el-icon {
    color: #fff !important;
    font-size: 18px;
}

.el-header-bottom-button /deep/ .el-icon:hover {
    color: #d9ecff !important;
    font-size: 18px;
}

.el-header-bottom-tags {
    margin-left: 20px;
}

.el-header-bottom-tags /deep/ .el-tag {
    margin-right: 10px;
    border-radius: 1px;
    height: 28px;
    line-height: 28px;
    color: #fff;
    font-size: 13px;
    background: rgba(0, 66, 255, 0.9);
    border-color: rgba(0, 102, 255, 0.9);
}

.el-header-bottom-tag-info /deep/ .el-icon {
    color: #fff !important;
}

.el-header-bottom-tag-info /deep/ .el-icon:hover {
    background: #ececec !important;
    color: #666 !important;
}

.el-header-bottom-tag-primary {
    background: #fff !important;
    color: #000 !important;
}

.el-header-bottom-tag-primary /deep/ .el-icon {
    color: #999 !important;
}

.el-header-bottom-tag-primary /deep/ .el-icon:hover {
    background: #999 !important;
    color: #fff !important;
}
</style>